﻿using DapperExtensions;
using DapperExtensions.Mapper;
using DapperExtensions.Sql;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using DapperExtensions;
using WMLogistics.Model;

namespace WMLogistics_Dao
{
    public class WLApplyDao
    {
        private SqlGeneratorImpl sqlGenerator;
        public WLApplyDao()
        {
            var config = new DapperExtensionsConfiguration(typeof(AutoClassMapper<>), new List<Assembly>(), new MySqlDialect());
            sqlGenerator = new SqlGeneratorImpl(config);
            DapperExtensions.DapperExtensions.Configure(config);
        }

        public int Add(wuliu_wlcompany_apply apply)
        {
            using (var conn = ConnectionHelper.OpenConnection())
            {
                return conn.Insert<wuliu_wlcompany_apply>(apply);
            }
        }
    }
}
